import DateUtils from "../../node_modules/iview/src/utils/date";

export default {
    changeTime(timeRange) {
        let dateFrom = ""
        let dateTo = ""
        if (timeRange.length > 1 && timeRange[0] != null && timeRange[1] != null) {
            dateFrom = DateUtils.format(timeRange[0], 'yyyyMMdd') + '000000';
            dateTo = DateUtils.format(timeRange[1], 'yyyyMMdd') + '235959';
        }
        return {dateFrom, dateTo}
    }
}